package com.wilmer.feedback.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.wilmer.common.annotation.Excel;
import com.wilmer.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 问题反馈对象 sys_feedback
 * 
 * @author Jett
 * @date 2024-05-20
 */
public class SysFeedback extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 幼儿园ID */
    @Excel(name = "幼儿园ID")
    private Long deptId;

    /** 幼儿园名称 */
    @Excel(name = "幼儿园名称")
    private String deptName;

    /** 用户ID */
    private Long userId;

    /** 问题根目录ID */
    private Long rootId;

    /** 反馈标题 */
    @Excel(name = "反馈标题")
    private String title;

    /** 反馈图片信息 */
    @Excel(name = "反馈图片信息")
    private String image;

    /** 反馈内容 */
    @Excel(name = "反馈内容")
    private String content;

    /** 反馈类型：1.反馈，2.回复 */
    @Excel(name = "反馈类型：1.反馈，2.回复")
    private Long type;

    /** 用户类型：1.家长，2：管理者（幼儿园园长） */
    private Long userType;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setRootId(Long rootId) 
    {
        this.rootId = rootId;
    }

    public Long getRootId() 
    {
        return rootId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setUserType(Long userType) 
    {
        this.userType = userType;
    }

    public Long getUserType() 
    {
        return userType;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deptId", getDeptId())
            .append("userId", getUserId())
            .append("rootId", getRootId())
            .append("title", getTitle())
            .append("image", getImage())
            .append("content", getContent())
            .append("type", getType())
            .append("userType", getUserType())
            .append("createTime", getCreateTime())
            .toString();
    }
}
